#include "../include/e_vector.h"

e_vector::e_vector()
{

}

void e_vector::set(float ax, float ay, float az)
{
    x = ax;
    y = ay;
    z = az;
}

void e_vector::normalize()
{
    float len = this->length();
    x /= len;
    y /= len;
    z /= len;
}

float e_vector::length()
{
    return sqrt(sq(x)+sq(y)+sq(z));
}
